<template>
  <div class="about">
    <mobilenavHeader />

    <!-- 顶部横幅 -->
    <div class="about-banner">
      <div class="banner-content">
        <h1>数据治理与服务的创新先锋</h1>
        <h3>赋能多行业数字化转型，引领未来发展趋势</h3>
      </div>
    </div>

    <!-- 公司介绍部分 -->
    <div class="about-section">
      <div class="company-intro">
        <div class="content-block">
          <h2 class="section-title">公司介绍</h2>
          <van-image
            class="company-image"
            :src="companyImage"
            alt="公司图片"
            fit="cover"
            radius="4"
            show-loading
            show-error
          >
            <template #loading>
              <van-loading type="spinner" size="20" />
            </template>
            <template #error>
              <div class="error-block">
                <van-icon name="photo-o" size="30" />
                <p>图片加载失败</p>
              </div>
            </template>
          </van-image>
          <p class="description">
            西安友盟智能科技有限公司（2021年成立，简称：友盟智能科技）是一家专注从事企业数据治理、数据共享以及数据服务的高新科技公司，公司业务涉及医疗、医药、金融、教育、政务、电力、通信等多个行业。
          </p>
          <p class="description">
            目前公司运用云计算、大数据及人工智能技术，已为医药、医疗、大健康等行业提供简单、安全、高效、合规的信息智能化解决方案。同时公司自主研发"渠道数据采集系统、销量地图管理系统、辖区备案管理系统、辖区指标管理系统、企业主数据管理系统、道数据清洗系统、渠道数据申诉系统、经销商管理系统、渠道数据分析系统、IDS统一身份认证系统、SSO单点登录系统"等多款核心产品，并建立了完善的客户终端主数据采集、终端主数据处理和管理的全套流程，满足企业数字化的主要业务要求。
          </p>
        </div>
      </div>

      <!-- 联系方式部分 -->
      <div class="contact-section">
        <div class="content-block">
          <h2 class="section-title">找到我们</h2>
          <van-image
            class="map-image"
            :src="mapImage"
            alt="地图"
            fit="cover"
            radius="4"
            show-loading
            show-error
          >
            <template #loading>
              <van-loading type="spinner" size="20" />
            </template>
            <template #error>
              <div class="error-block">
                <van-icon name="photo-o" size="30" />
                <p>地图加载失败</p>
              </div>
            </template>
          </van-image>
          <van-cell-group :border="false">
            <van-cell>
              <template #icon>
                <van-icon name="location" color="#666666" size="20" />
              </template>
              <template #title>
                <span class="contact-text"
                  >陕西省西安市莲湖区静安广场2号楼22楼</span
                >
              </template>
            </van-cell>

            <van-cell>
              <template #icon>
                <van-icon name="phone" color="#666666" size="20" />
              </template>
              <template #title>
                <span class="contact-text">029 - 88866102 / 18192362927</span>
              </template>
            </van-cell>

            <van-cell>
              <template #icon>
                <van-icon name="invitation" color="#666666" size="20" />
              </template>
              <template #title>
                <span class="contact-text">service@umengdata.com</span>
              </template>
            </van-cell>

            <van-cell>
              <template #icon>
                <van-icon name="clock" color="#666666" size="20" />
              </template>
              <template #title>
                <span class="contact-text">8:30 - 17:30</span>
              </template>
            </van-cell>
          </van-cell-group>
        </div>
      </div>
    </div>

    <back-top />
    <mobilebottom />
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import mobilenavHeader from "@/components/mobilenavHeader.vue";
import mobilebottom from "@/components/mobilebottom.vue";
import BackTop from "@/components/BackTop.vue";

// 导入图片
import companyImage from "@/assets/img/about/company.png";
import mapImage from "@/assets/img/about/map.png";
</script>

<style lang="scss" scoped>
.about {
  &-banner {
    position: relative;
    height: 70vh;
    background-image: url("@/assets/img/about/bg.png");
    background-size: cover;
    background-position: center;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.48);
    }

    .banner-content {
      position: relative;
      padding: 20px;
      color: #fff;
      text-align: center;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;

      h1 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 12px;
      }

      h3 {
        font-size: 16px;
        font-weight: normal;
      }
    }
  }

  &-section {
    padding: 20px;
    max-width: 100%;
  }
}

.company-intro,
.contact-section {
  margin-bottom: 40px;
}

.company-image,
.map-image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;

  .error-block {
    padding: 32px 0;
    text-align: center;
    color: #969799;
    background-color: #f7f8fa;

    p {
      margin-top: 8px;
      font-size: 14px;
    }
  }
}

.content-block {
  .section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1265cc;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 40px;
      height: 3px;
      background-color: #1265cc;
    }
  }

  .description {
    font-size: 14px;
    line-height: 2.6;
    color: #666666;
    margin-bottom: 15px;
    text-indent: 2em;
  }
}

:deep(.van-cell) {
  padding: 16px 0;

  .van-cell__title {
    margin-left: 12px;
  }
}

.contact-text {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

@media (min-width: 768px) {
  .about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  .company-intro,
  .contact-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }

  .company-image,
  .map-image {
    width: 50%;
    margin-bottom: 0;
  }

  .content-block {
    width: 50%;
  }

  .banner-content {
    text-align: left;
    padding-left: 18%;

    h1 {
      font-size: 35px;
    }

    h3 {
      font-size: 20px;
    }
  }
}
</style>
